import Home from '@/pages/Home.vue'
// 路由懒加载
// /* webpackChunkName:"other" */ 统一打包到other.js文件中
const routes = [{
        path: '/',
        component: Home
    },
    {
        path: '/detail/:id',
        component: () =>
            import ( /* webpackChunkName:"other" */ '@/pages/Detail.vue')
    },
    {
        path: '/login',
        component: () =>
            import ( /* webpackChunkName:"other" */ '@/pages/Login.vue')
    },
    {
        path: '/person',
        component: () =>
            import ( /* webpackChunkName:"other" */ '@/pages/Person.vue')
    },
    {
        path: '/store',
        component: () =>
            import ( /* webpackChunkName:"other" */ '@/pages/Store.vue')
    },
    {
        path: '/update',
        component: () =>
            import ( /* webpackChunkName:"other" */ '@/pages/Update.vue')
    },
    {
        path: '/:pathMach(.*)*',
        redirect: '/'
    },
];
export default routes;